import request from '@/utils/request'

export function fetchList(params) {
  return request({
    url: '/back/ums/widthConfig/page',
    method: 'get',
    params: params
  })
}

export function createBanner(data) {
  return request({
    url: '/back/ums/widthConfig/insert',
    method: 'post',
    data: data
  })
}

export function updateBanner(id, data) {
  data.id = id
  return request({
    url: '/back/ums/widthConfig/update',
    method: 'put',
    data: data
  })
}
export function updateTransClasuseSetting(data) {
  return request({
    url: 'back/ums/transClauseSetting/save',
    method: 'post',
    data: data
  })
}
export function getTransClasuseSetting() {
  return request({
    url: 'back/ums/transClauseSetting/get',
    method: 'get',
  })
}
export function deleteBanner(id) {
  return request({
    url: '/back/ums/widthConfig/delete/' + id,
    method: 'delete'
  })
}


